package com.ruoyi.yun.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.yun.mapper.YunProfileDriverMapper;
import com.ruoyi.yun.domain.YunProfileDriver;
import com.ruoyi.yun.service.IYunProfileDriverService;

/**
 * 驾驶员管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-10-24
 */
@Service
public class YunProfileDriverServiceImpl implements IYunProfileDriverService 
{
    @Autowired
    private YunProfileDriverMapper yunProfileDriverMapper;

    /**
     * 查询驾驶员管理
     * 
     * @param id 驾驶员管理主键
     * @return 驾驶员管理
     */
    @Override
    public YunProfileDriver selectYunProfileDriverById(Long id)
    {
        return yunProfileDriverMapper.selectYunProfileDriverById(id);
    }

    /**
     * 查询驾驶员管理列表
     * 
     * @param yunProfileDriver 驾驶员管理
     * @return 驾驶员管理
     */
    @Override
    public List<YunProfileDriver> selectYunProfileDriverList(YunProfileDriver yunProfileDriver)
    {
        return yunProfileDriverMapper.selectYunProfileDriverList(yunProfileDriver);
    }

    /**
     * 新增驾驶员管理
     * 
     * @param yunProfileDriver 驾驶员管理
     * @return 结果
     */
    @Override
    public int insertYunProfileDriver(YunProfileDriver yunProfileDriver)
    {
        return yunProfileDriverMapper.insertYunProfileDriver(yunProfileDriver);
    }

    /**
     * 修改驾驶员管理
     * 
     * @param yunProfileDriver 驾驶员管理
     * @return 结果
     */
    @Override
    public int updateYunProfileDriver(YunProfileDriver yunProfileDriver)
    {
        return yunProfileDriverMapper.updateYunProfileDriver(yunProfileDriver);
    }

    /**
     * 批量删除驾驶员管理
     * 
     * @param ids 需要删除的驾驶员管理主键
     * @return 结果
     */
    @Override
    public int deleteYunProfileDriverByIds(Long[] ids)
    {
        return yunProfileDriverMapper.deleteYunProfileDriverByIds(ids);
    }

    /**
     * 删除驾驶员管理信息
     * 
     * @param id 驾驶员管理主键
     * @return 结果
     */
    @Override
    public int deleteYunProfileDriverById(Long id)
    {
        return yunProfileDriverMapper.deleteYunProfileDriverById(id);
    }
}
